<?php
ob_start();?><?php
include("config.php");

require_once("auth.php");
$pt=$_POST['txtPaymentType'];
$allowed=$_POST['txtAllowed'];
$data=mysql_query("insert into payment values('','$pt','$allowed')");
if($data)
{
header("location: displaypayments.php?added=added");
}
else
{
echo mysql_error();
}
?>
<?php ob_flush();
?>